import request from "../request";

export function getTopBanners() {
  return request({
    url: "/banner"
  })
}

//热门推荐
export function getHotRecommends() {
  return request({
    url: "/personalized"
  })
}

//新碟上架
export function getNewAlbums(limit, offset) {
  return request({
    url: "/album/new",
    params: {
      limit, 
      offset
    }
  })
}

/** 
 * 榜单
 */
 export function getRanking(id) {
  return request({
    url: "/playlist/detail",
    params: {
      id
    }
  })
}

/**
 * 
 * @param {*} limit 
 * @param {*} cat 5001：入驻歌手
 * @returns 
 */
 export function getArtistList(limit, cat) {
  return request({
    url: "/artist/list",
    params: {
      limit,
      cat
    }
  })
}